﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Hero
    {
        private string nickname;
        private string heroname;
        private string heroinfo;
        private int attack;
        private int defense;
        private int speed;

        public void Hello()
        {
            Console.Write("昵称：{0},名称：{1},信息：{2},攻击力：{3},防御力：{4},速度：{5},",this.nickname,this.heroname,this.heroinfo,this.attack,this.defense,this.speed);
        }
        public string Nickname 
        {
            get { return this.nickname; }
            set { this.nickname = value; }
        }
        public string Heroname
        {
            get { return this.heroname; }
            set { this.heroname = value; }
        }
        public string Heroinfo
        {
            get { return this.heroinfo; }
            set { this.heroinfo = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defense
        {
            get { return this.defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
        public Hero() { }

        public Hero(string nickname,string heroname,string heroinfo,int attack,int defense,int speed) 
        {
            this.nickname = nickname;
            this.heroname = heroname;
            this.heroinfo = heroinfo;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
        }
    }
}
